<table>
<tr>
  <th>属性id</th>
  <th>属性名</th>
  <th>显示属性名称</th>
  <th>数据类型</th>
  <th>选项名称</th>
  <th>属性类别</th>
  <th>属性组类别</th>
   <th>排序</th>
  <td colspan="2"></td>
</tr>
<% for product_attribute_template in list_templates %>
  <tr>
    <td><%= product_attribute_template.id %></td>
    <td><%= product_attribute_template.name %></td> <td><%= product_attribute_template.display_name %></td>
    <td><%= product_attribute_template.data_type.description %></td>
    <td><%=product_attribute_template.lookuplist ? product_attribute_template.lookuplist.name : "" %></td>
    <td><%=product_attribute_template.template_category.display_name %></td>
    <td><%= product_attribute_template.template_style ? product_attribute_template.template_style.des : "" %></td>
   <td><%= product_attribute_template.ord %></td>
    <td><%= link_to_remote 'Edit', :url=>edit_product_attribute_template_path(product_attribute_template),:update=>"operate",:method=>:get %></td>
    <td><%= link_to_remote 'Destroy', :url=>product_attribute_template, :confirm => 'Are you sure?', :method => :delete,:update=>"display_template" %></td>
  </tr>
<% end %>
</table>